package ffhs.lernkartei.comparator;

import java.util.Comparator;

import ffhs.lernkartei.domain.Card;

/**
 * Komparator zum sortieren der Karten nach dem Attribut repeatDate
 * 
 * @author schwendh
 *
 */
public class CardOrderDueDateComparator implements Comparator<Card>
{
	public int compare(Card card1, Card card2)
	{

		int result = card1.getRepeatDate().compareTo(card2.getRepeatDate());

		return result;
	}
}
